![]() | http://www.wavecom.com/forum Release version: 3.04 |
This sample depends on the following libraries :
This IP Connect sample ADL Library provides TCPIP library configuration commands, and APIs to connect and process FTP tranfers.
AT commands parameters are stored in FLASH memory. For more details on parameters, please refer to the TCPIP library documentation.
The commands are defined below :
AT+IPGPRS (GPRS parameters for IP connection setup)
| Command | Answers |
| AT+IPGPRS? | +IPGPRS:
<Cid>
,
<APN>
,
<UN>
,
<PW>
OK |
| AT+IPGPRS=? | +IPGPRS:
(1-4)
,
(100)
,
(50)
,
(50)
OK |
| AT+IPGPRS= <Cid> , <APN> , <UN> , <PW> | +CME ERROR: 3 or OK |
| Parameter | Values range | Description | Default value |
| Cid | 1-4 | Context ID | 1 |
| APN | 100 | Operator APN | NA |
| UN | 50 | User Name | NA |
| PW | 50 | Password | NA |
AT+IPGSM (GSM parameters for IP connection setup)
| Command | Answers |
| AT+IPGSM? | +IPGSM:
<DialNB>
,
<DialNB1>
,
<DialNB2>
,
<UN>
,
<PW>
,
<RedialCount>
,
<RedialDelay>
,
<Timeout>
OK |
| AT+IPGSM=? | +IPGSM:
(1-2)
,
(64)
,
(64)
,
(64)
,
(64)
,
(0-255)
,
(0-255)
,
(0-255)
OK |
| AT+IPGSM= <DialNB> , <DialNB1> , <DialNB2> , <UN> , <PW> , <RedialCount> , <RedialDelay> , <Timeout> | +CME ERROR: 3 or OK |
| Parameter | Values range | Description | Default value |
| DialNB | 1-2 | Used dial number | NA |
| DialNB1 | 64 | Dial Number 1 | NA |
| DialNB2 | 64 | Dial Number 2 | NA |
| UN | 64 | User Name | NA |
| PW | 64 | Password | NA |
| RedialCount | 0-255 | Redial tries | NA |
| RedialDelay | 0-255 | Delay between redials | NA |
| Timeout | 0-255 | Connection inactivity timeout | NA |
AT+IPFTP (FTP server parameters setup)
| Command | Answers |
| AT+IPFTP? | +IPFTP:
<Port>
,
<Type>
,
<Server>
,
<UN>
,
<PW>
OK |
| AT+IPFTP=? | +IPFTP:
(0-65535)
,
("A","I")
,
(120)
,
(64)
,
(64)
OK |
| AT+IPFTP= <Port> , <Type> , <Server> , <UN> , <PW> | +CME ERROR: 3 or OK |
| Parameter | Values range | Description | Default value |
| Port | 0-65535 | TCP Port on server | NA |
| Type | "A","I" | Text or binary type | NA |
| Server | 120 | Server address | NA |
| UN | 64 | User Name | NA |
| PW | 64 | Password | NA |
AT+IPCONNECT (Connection start/stop command)
| Command | Answers |
| AT+IPCONNECT? | +IPCONNECT:
<Bearer>
,
<Connect>
OK |
| AT+IPCONNECT=? | +IPCONNECT:
(0-1)
,
(0-1)
OK |
| AT+IPCONNECT= <Bearer> , <Connect> | +CME ERROR: 3 or OK |
| Parameter | Values range | Description | Default value |
| Bearer | 0-1 | 0 for GSM bearer 1 for GPRS bearer | NA |
| Connect | 0-1 | 0 to stop connection 1 to start connection | NA |
All constants and APIs are defined by the ipconnect.h header file, which must be included by any application to allows it to use the IPConnect Library.
The library will need the global variable bellow on link operation, to define the trace level on which will be displayed the IPConnect traces :
Any application which links with the IPConnect Library have to use the TCPIP Add-on Library.
The IPConnect APIs are defined bellow :
ip_Subscribe| Parameter | Description |
| CHandler | connection handler, to reveive connection events. |
| Parameter | Description |
| Bearer | Used bearer (IP_BEARER_GSM or IP_BEARER_GPRS) |
| Mode | uses modes defined below : IP_MODE_DISCONNECT IP_MODE_CONNECT IP_MODE_DISCONNECTING (Read only) IP_MODE_CONNECTING (Read only) IP_MODE_SET_BEARER IP_MODE_GET_STATE |
| Parameter | Description |
| FtpPort | FTP server TCP port |
| FtpType | A or I transfer type |
| FtpServ | FTP server address |
| FtpUn | User name |
| FtpPw | Password |
| Parameter | Description |
| FilePath | File path on the server |
| FileName | File name on the server |
| CtrlHdlr | Event handler |
| DataHdlr | Data handler |
| Parameter | Description |
| FilePath | File path on the server |
| FileName | File name on the server |
| CtrlHdlr | Event handler |
| DataHdlr | Data handler |
Updated : Thu Apr 27 14:12:36 CEST 2006